import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 代理信息
 */
@Entity('agent_user_info')
export class AgentUserInfo extends BaseEntity {
    //    只有四个字段，名字，手机号，邮箱，备注
    @Column({
        comment: '用户名',
        length: 50,
        nullable: true,
    })
    username: string;
    @Column({
        comment: '手机号',
        length: 11,
        nullable: true,
    })
    phone: string;
    @Column({
        comment: '邮箱',
        length: 50,
        nullable: true,
    })
    email: string;
    @Column({
        comment: '备注',
        length: 255,
        nullable: true,
    })
    remark: string;

    // 状态，禁用0 启用1
    @Column({
        comment: '状态',
        nullable: true,
        default: 0,
    })
    status: number;

}
